<?php
$in_site = 'dassnfu';
$page = 'Piostats';
include($_SERVER['DOCUMENT_ROOT']."/start.php");

if(empty($_SESSION['spelerId'])) {
	$bestanden = "<style media='screen' type='text/css'>
	    .defaultTextActive { color: #a1a1a1 !important; font-style: italic !important; }
	</style>
	<script language='javascript'>
	$(document).ready(function()
	{
	    $('.defaultText').focus(function(srcc) {
	        if ($(this).val() == $(this)[0].title) {
	            $(this).removeClass('defaultTextActive');
	            $(this).val('');
	        }
	    });
	    $('.defaultText').blur(function() {
	        if ($(this).val() == '')
	        {
	            $(this).addClass('defaultTextActive');
	            $(this).val($(this)[0].title);
	        }
	    });
	    
	    $('.defaultText').blur();        
	});</script>";
}

include_once($_SERVER['DOCUMENT_ROOT']."/php_functions/database_connectie.php");
include_once($_SERVER['DOCUMENT_ROOT']."/header.php");
if(empty($_SESSION['spelerId'])) {
?>
	<h1>Index (inloggen)</h1>

	<form action="/session_functions/inloggen.php" method="post">
	<ul class="form">
	<li><label for="gebruikersnaam">Gebruikersnaam</label><br><input id="gebruikersnaam" class="defaultText" type="text" name="user" title="Gebruikersnaam"></li>
	<li><label for="password">Wachtwoord</label><br><input id="password" class="defaultText" type="password" name="password" title="Wachtwoord"></li>
	<li><label for="remember">Onthouden</label><br><span id="remember" class='checkbox'><input type="checkbox" name="remember"></span></li>
	<!-- <li class="menu"><a href="/stats/">Statistieken</a></li> -->
	<!-- <li class="menu"><a href="/kalender/">Kalender</a></li> -->
	<!-- <li class="menu"><a href="/extra/video/">Foto's & Video's</a></li> -->
	<!-- <li class="menu"><a href="/session_functions/uitloggen.php">Uitloggen</a></li> -->
	</ul>
	
	<ul class="individual single">
		<li class="submit_button"><input type="submit" value="Inloggen"></li>
	</ul>
	
	</form>
<?php }else { ?>
	<h1>Index</h1>

	<ul class="list">
	<li class="selectable"><div class="arrow"><img class="icon icon_wedstrijd" src="/images/style<?php echo $style_nmr; ?>/icons/wedstrijd.png"><span><a href="/schema/">Wedstrijdschema</a></span></div></li>
	<li class="empty_list"></li>
	<li class="selectable"><div class="arrow"><img class="icon icon_activiteiten" src="/images/style<?php echo $style_nmr; ?>/icons/calendar.png"><span><a href="/extra/agenda/">Activiteiten</a></span></div></li>
	<li class="empty_list"></li>
	<li class="selectable"><div class="arrow"><img class="icon icon_team" src="/images/style<?php echo $style_nmr; ?>/icons/team.gif"><span><a href="/team/">Team</a></span></div></li>
	<?php if($spelerId > 0) { ?>
		<li class="empty_list"></li>
		<li class="selectable"><div class="arrow"><p><a href="/session_functions/uitloggen.php">Uitloggen</a></p></span></div></li>
	<?php } ?>
<?php } ?>
</ul>
<?php
include_once($_SERVER['DOCUMENT_ROOT']."/footer.php");
?>
